package com.example.zhaoping.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/*
* 消息列表
* */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageList {
    private int fromId;
    private String fromName;
    private String fromType;
    private String fromAvatar;
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date time;
    private int readCount;   //未读条数
}
